<?php
use \Quality\Start\Domain\Entity\User;
use Symfony\Component\Security\Core\SecurityContext;

/*
$link = mysql_connect('dualtec-mysql-02.dualtec.com.br:3306','qualitysistemas4', '2DqbqP2M') or die('echo');
mysql_select_db('qualitysistemas4', $link);

$result = mysql_query('SELECT `CDITEMMEMORANDO`, `DESCRICAO` FROM `solicite_proitemmemorando` LIMIT 1601,300');

$errors = 0;

while ($a = mysql_fetch_assoc($result)) {
    $success = mysql_query(
        sprintf(
            'UPDATE `solicite_proitemmemorando` SET `DESCRICAO` = "%s" WHERE `CDITEMMEMORANDO` = %d',
            utf8_encode($a['DESCRICAO']),
            $a['CDITEMMEMORANDO']
        )
    );

    if (!$success) ++$errors;
}

echo 'fim'; die($errors);
*/

ini_set('log_errors', 1);
ini_set('error_log', __DIR__ . '/../phperrors.log');
ini_set('session.save_path', __DIR__ . '/../tmp/session');

require_once __DIR__ . '\..\boot.php';

$app = \Quality\Start\Infra\ApplicationBuilder::build(
    __DIR__,
    __DIR__ . '/../config/dic.yml',
    __DIR__ . '/../config/routes.yml',
    __DIR__ . '/../tmp/cache'
);

$app->run();